#include<unistd.h>
#include<fcntl.h>
#include"rand-dev.h"
void rand_dev_construct(rand_dev *this){
	this->fd=open("/dev/urandom",O_RDONLY);
}
void rand_dev_destruct(rand_dev *this){
	close(this->fd);
}
void rand_dev_rand_array(rand_dev *this,void *ptr,size_t bytes){
	read(this->fd,ptr,bytes);
}